﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace Platform.Amazon.Model {

    [XmlRootAttribute(IsNullable = false)]
    public class AmazonEnvelope {

        [XmlAttribute("noNamespaceSchemaLocation", Namespace = XmlSchema.InstanceNamespace)]
        public string noNamespaceSchemaLocation = "amzn-envelope.xsd";

        public Header Header { get; set; }
        public string MessageType { get; set; }

        [XmlElement]
        public List<Message> Message { get; set; }

        public AmazonEnvelope() {
        }


        public AmazonEnvelope(string merchantId, string feedName, string optType) {
            Header = new Header(merchantId);
            MessageType = feedName;
            Message = new List<Message>();
        }

    }
}
